using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_AcctItemAccumTmpMap : EntityTypeConfiguration<t_AcctItemAccumTmp>
    {
        public t_AcctItemAccumTmpMap()
        {
            // Primary Key
            this.HasKey(t => t.FAccumID);

            // Properties
            this.Property(t => t.FAcctNumber)
                .HasMaxLength(40);

            this.Property(t => t.FAcctName)
                .HasMaxLength(80);

            this.Property(t => t.FItemClassName)
                .HasMaxLength(80);

            this.Property(t => t.FItemNumber)
                .HasMaxLength(80);

            this.Property(t => t.FItemName)
                .HasMaxLength(80);

            this.Property(t => t.FBalDC)
                .HasMaxLength(8);

            // Table & Column Mappings
            this.ToTable("t_AcctItemAccumTmp");
            this.Property(t => t.FAccumID).HasColumnName("FAccumID");
            this.Property(t => t.FAccountID).HasColumnName("FAccountID");
            this.Property(t => t.FItemClassID).HasColumnName("FItemClassID");
            this.Property(t => t.FItemID).HasColumnName("FItemID");
            this.Property(t => t.FLevel).HasColumnName("FLevel");
            this.Property(t => t.FAcctNumber).HasColumnName("FAcctNumber");
            this.Property(t => t.FAcctName).HasColumnName("FAcctName");
            this.Property(t => t.FItemClassName).HasColumnName("FItemClassName");
            this.Property(t => t.FItemNumber).HasColumnName("FItemNumber");
            this.Property(t => t.FItemName).HasColumnName("FItemName");
            this.Property(t => t.FItemDetail).HasColumnName("FItemDetail");
            this.Property(t => t.FCyID).HasColumnName("FCyID");
            this.Property(t => t.FBeginDate).HasColumnName("FBeginDate");
            this.Property(t => t.FEndDate).HasColumnName("FEndDate");
            this.Property(t => t.FBeginBalFor).HasColumnName("FBeginBalFor");
            this.Property(t => t.FBeginBal).HasColumnName("FBeginBal");
            this.Property(t => t.FHapBeforeFor).HasColumnName("FHapBeforeFor");
            this.Property(t => t.FHapBefore).HasColumnName("FHapBefore");
            this.Property(t => t.FAccumFor).HasColumnName("FAccumFor");
            this.Property(t => t.FAccum).HasColumnName("FAccum");
            this.Property(t => t.FInter).HasColumnName("FInter");
            this.Property(t => t.FIntertopay).HasColumnName("FIntertopay");
            this.Property(t => t.FRate).HasColumnName("FRate");
            this.Property(t => t.FcheckerID).HasColumnName("FcheckerID");
            this.Property(t => t.FInterFor).HasColumnName("FInterFor");
            this.Property(t => t.FInterToPayFor).HasColumnName("FInterToPayFor");
            this.Property(t => t.FBDC).HasColumnName("FBDC");
            this.Property(t => t.FBalDC).HasColumnName("FBalDC");
            this.Property(t => t.FEndBalanceFor).HasColumnName("FEndBalanceFor");
            this.Property(t => t.FEndBalance).HasColumnName("FEndBalance");
            this.Property(t => t.FSum).HasColumnName("FSum");
            this.Property(t => t.FPx).HasColumnName("FPx");
        }
    }
}
